import { CmdCode } from '../../code/index';
import { CmdSignModel } from '../../models/index';
import { AHttpCmd } from '../base.cmd';
import Taro from '@tarojs/taro';

export class AliyunPolicyPostCmd extends AHttpCmd {
  constructor(private mchId?: number) {
    super();
  }

  req(): CmdSignModel {
    Taro.showLoading({
      title: '上传中...',
    });
    let sign: CmdSignModel = super.buildCmdSign();
    return sign;

  }

  resp(data: any): void {
  }

  error(model: CmdSignModel): void {
  }

  getCmdCode(): string {
    return CmdCode.ALIYUN_POLICY_POST;
  }

  returnStruct() {
    return {
      host: '',
      accessId: '',
      policy: '',
      signature: ''
    }
  }
}
